<script src="https://cdn.firebase.com/v0/firebase.js"></script>
<?php $this->headScript()->appendFile($this->JS_PATH . 'question.js'); ?>
<?php $this->headLink()->appendStylesheet($this->CSS_PATH . 'compiled/grids.css'); ?>
<input type="hidden" name="q_id" id="q_id" value="<?php echo $this->q_insert_id;?>" />
<input type="hidden" name="url_hashtag" id="url_hashtag" value="<?php echo $this->url_hashtag; ?>" />
<input type="hidden" name="q_question" id="q_question" value="<?php echo $this->q_question; ?>" />
<input type="hidden" name="q_u_id" id="q_u_id" value="<?php echo $this->q_u_id; ?>" />


<div class="container-fluid">
    <div id="pad-wrapper" class="form-page">
        
        <?php if ($this->statusHash == 0): ?>
        <!-- grid with .row-fluid -->
        <div class="grid-wrapper">
            <div class="row-fluid head">
                <div class="presentation-cnt">
                    <h1>Sorry! But this Custom URL is no more active. </h1>
                </div>
            </div>

        </div>
        <?php else: ?>
        
        <div class="row-fluid form-wrapper">
            <!-- left column -->
            <div class="span6 column">

                <?php if ($this->successmessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>



                <?php if (count($this->errorMessage) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessage as $erroValue): ?>
                            <?php foreach ($erroValue as $_value): ?>
                                <div class="text-left">
                                    <i class="icon-remove-sign"></i>
                                    <?php echo $_value; ?>
                                </div>
                            <?php endforeach; ?>
                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>

                <form action="" method="post">
                    
                    <div class="field-box">
                        <label>Question:</label>
                        <?php echo $this->form->question; ?>
                    </div>
                    
                    <div class="field-box display-none">
                        <label>Name:</label>
                        <?php echo $this->form->name; ?>
                    </div>

                    <div class="field-box">
                        <label>Phone (optional) :</label>
                        <?php echo $this->form->phone; ?>
                    </div>

                    <div class="field-box">
                        <label>Email (optional) :</label>
                        <?php echo $this->form->email; ?>
                        <span style=" color: #9BA0A5;display: block;font-size: 13px;font-style: italic;text-align: left; margin-bottom: 2%;">
                            Enter your email to receive replies
                        </span>
                    </div>

                   

                    <div class="field-box actions">
                        <input type="submit" value="Send Question" class="btn-glow primary">
                    </div>

                    <input type="hidden" name="url_lgn_id" id="url_lgn_id" value="<?php echo $this->url_lgn_id; ?>" />
                    <input type="hidden" name="url_id" id="url_id" value="<?php echo $this->url_id; ?>" />
                    
                </form>
            </div>
        </div>
    
        <?php endif;?>
    </div>
</div>   
